home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / mapiwz.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.0 KB  |  71 lines

  1. /*
  2.  *  M A P I W Z . H
  3.  *
  4.  *  Definitions for the Profile Wizard.  Includes all prototypes
  5.  *  and constants required by the provider-wizard code consumers.
  6.  *
  7.  *  Copyright 1986-1996 Microsoft Corporation. All Rights Reserved.
  8.  */
  9.  
  10. #ifndef _MAPIWZ_H
  11. #define _MAPIWZ_H
  12. #pragma option push -b
  13.  
  14.  
  15. #define WIZ_QUERYNUMPAGES   (WM_USER +10)
  16. #define WIZ_NEXT            (WM_USER +11)
  17. #define WIZ_PREV            (WM_USER +12)
  18. /*
  19.  *  NOTE: Provider-Wizards should not use ids ranging between
  20.  *  (WM_USER + 1) and (WM_USER +20) as these have been reserved for 
  21.  *  future releases.
  22.  */
  23.  
  24. /*  Flags for LaunchWizard API */
  25.  
  26. #define MAPI_PW_FIRST_PROFILE           0x00000001
  27. #define MAPI_PW_LAUNCHED_BY_CONFIG      0x00000002
  28. #define MAPI_PW_ADD_SERVICE_ONLY        0x00000004
  29. #define MAPI_PW_PROVIDER_UI_ONLY        0x00000008
  30. #define MAPI_PW_HIDE_SERVICES_LIST      0x00000010
  31.  
  32. /*
  33.  *  Provider should set this property to TRUE if it does not
  34.  *  want the Profile Wizard to display the PST setup page.
  35.  */
  36. #define PR_WIZARD_NO_PST_PAGE           PROP_TAG(PT_BOOLEAN, 0x6700)
  37.  
  38. typedef HRESULT (STDAPICALLTYPE LAUNCHWIZARDENTRY)
  39. (
  40.     HWND            hParentWnd,
  41.     ULONG           ulFlags,
  42.     LPCTSTR FAR *   lppszServiceNameToAdd,
  43.     ULONG           cbBufferMax,
  44.     LPTSTR          lpszNewProfileName
  45. );
  46. typedef LAUNCHWIZARDENTRY FAR * LPLAUNCHWIZARDENTRY;
  47.  
  48. typedef BOOL (STDAPICALLTYPE SERVICEWIZARDDLGPROC)
  49. (
  50.     HWND            hDlg,
  51.     UINT            wMsgID,
  52.     WPARAM          wParam,
  53.     LPARAM          lParam
  54. );
  55. typedef SERVICEWIZARDDLGPROC FAR * LPSERVICEWIZARDDLGPROC;
  56.  
  57. typedef ULONG (STDAPICALLTYPE WIZARDENTRY)
  58. (
  59.     HINSTANCE       hProviderDLLInstance,
  60.     LPTSTR FAR *    lppcsResourceName,
  61.     DLGPROC FAR *   lppDlgProc,
  62.     LPMAPIPROP      lpMapiProp,
  63.     LPVOID          lpMapiSupportObject
  64. );
  65. typedef WIZARDENTRY FAR * LPWIZARDENTRY;
  66.  
  67. #define LAUNCHWIZARDENTRYNAME           "LAUNCHWIZARD"
  68.  
  69. #pragma option pop
  70. #endif  /* _MAPIWZ_H */
  71.